package com.zhang.my.uaa.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.zalando.problem.spring.web.advice.ProblemHandling;

/**
 * ExceptionHandler:异常处理
 *
 * @author zhangxiaoxiang
 * @date 22/8/2021
 */
@ControllerAdvice
public class ExceptionHandler implements ProblemHandling {
    @Override
    public boolean isCausalChainsEnabled() {
        //返回堆栈
        return true;
    }
}
